from utils.response_utils import ResponseUtils
from service.recommend_service import RecommendService
from flask import Blueprint,request

recommend = Blueprint('recommend', __name__)

class RecommentController:
    @recommend.route('/recomment_list', methods=['POST'])
    def recomment_list():
        """
        获取推荐列表
        :return:
        """
        try:
            recomment_list = RecommendService.get_recommend_users()
            return ResponseUtils.success(data=recomment_list)
        except Exception as e:
            return ResponseUtils.error(message=str(e))